tar xf ${DOWNLOADDIR}/cmake-4.1.1.tar.gz -C ${BUILDDIR}
pushd ${BUILDDIR}/cmake-4.1.1
    patch -Np1 -i ${DOWNLOADDIR}/cmake-3.22.3-add-loongarch64-to-checktypesize.patch
    mkdir build
    pushd build
        cmake -DCMAKE_INSTALL_PREFIX=${SYSDIR}/cross-tools -DCMAKE_BUILD_TYPE=Release -DCMake_TEST_Qt6=0 ..
        make ${JOBS}
        make install
    popd
popd
